﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RED_NET_Core.DAL;
using RED_NET_Core.Entity;
namespace RED_NET_Core.BLL
{
    public class UserInfoBLL
    {
        #region[用户自己修改密码]

        /// <summary>
        /// 修改自己的密码
        /// </summary>
        /// <param name="newPassword">新密码</param>
        /// <returns></returns>
        public static void UpdateMyPassword(int uid,string newPassword)//,string newAvatarUrl)
        {
           
           try
           {
                UserInfoDAL.UpdateMyPassword(uid,newPassword);
            }
            catch (Exception ex)
            {
                throw ex;

            }

        }
        #endregion

        #region[用户自己修改头像]

        /// <summary>
        /// 修改自己的头像
        /// </summary>
        /// <param name="newPassword">新图片地址</param>
        /// <returns></returns>
        public static void UpdateMyAvatar(int uid,string avatarUrl)//,string newAvatarUrl)
        {
            
            try
            {
                UserInfoDAL.UpdateMyAvatar( uid,avatarUrl);
            }
            catch (Exception ex)
            {
                throw ex;

            }

        }

        #endregion


    }
}
